Skip to content

Instantly share code, notes, and snippets.

@KurtJacobson
Last active May 25, 2018 16:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KurtJacobson/9f8ae78dfcd7ba8576ae152018fcf123 to your computer and use it in GitHub Desktop.
Save KurtJacobson/9f8ae78dfcd7ba8576ae152018fcf123 to your computer and use it in GitHub Desktop.
Building 4.16.8 kernel with RT patch on Stretch

Building 4.16.8 kernel with RT patch on Stretch

cd ~
sudo apt-get update
sudo apt-get install build-essential bin86 libqt4-dev libncurses5-dev pkg-config bison flex libssl-dev libelf-dev
mkdir rtlinux
cd rtlinux
wget https://www.kernel.org/pub/linux/kernel/v4.x/linux-4.16.8.tar.xz
wget https://www.kernel.org/pub/linux/kernel/projects/rt/4.16/patch-4.16.8-rt3.patch.gz
tar -xpf linux-4.16.8.tar.xz
gunzip patch-4.16.8-rt3.patch.gz
cp patch-4.16.8-rt3.patch linux-4.16.8
cd linux-4.16.8
cat patch-4.16.8-rt3.patch | patch -p1
make xconfig

Kernel Configuration

Ctr + f to search the config options.

  • make sure hpet is enabled
  • set 64 bit if your OS is 64 bit
  • set for fully preemptable kernel

Save and close the window

Make and Install

make -j4
sudo make modules_install
sudo make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment